![]() | Helpline Q&A Directory | ||
Print folder directories
There must not be anything - not even a blank line - after 'cls'. Save the two-line file in your C:\Windows\SendTo folder as printdir.bat. Now when you want a printout of the files in a folder, make sure your printer is on, right-click the folder in Windows Explorer, and select Send To, printdir.bat. If this doesn't work it's likely that your printer doesn't support direct output from DOS, in which case try modifying printdir.bat so that it reads: dir "%1" > c:\Windows\Temp\dirtmp.txt Notepad/p c:\Windows\Temp\dirtmp.txt cls Instead of sending the output directly to the printer port we are now sending it to the file dirtmp.txt in the Windows Temp folder then using Notepad to print this file. Because Notepad is a Windows program, it should be able to print using any printer. If you experience a Notepad error suggesting that C:\Windows\Temp\Dirtmp.txt does not exist or is being used, try creating an artificial delay between the 'dir' and 'Notepad' commands by inserting a line that reads 'dir c:\Windows >nul:'. | |||
© 2002 PC Advisor |